<?php

 error_reporting(0);

define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');  
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'lv4');
define('DB_SERVER_PASSWORD', 'sunshine');
define('DB_DATABASE', 'lv4');
define('SQL_CACHE_METHOD', 'none');

if (!defined('USE_PCONNECT')) define('USE_PCONNECT', 'false');



function db_result($param) {
	echo "<pre>";
	print_r($param);
	echo "</pre>";
}


$db = new queryFactory();

 
if (!$db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false)) {
	die("!$db->connect");	 
}else {
	echo('$db->connect okkk<br>');
}




